<template>
  <div>
    <button @click="isLoading = !isLoading">切换loading</button>
    <br />
    <van-button :loading="isLoading" type="primary" />
    <br />
    <van-button :loading="isLoading" type="primary" loading-type="spinner" />
    <br />
    <van-button
      :disabled="isLoading"
      :loading="isLoading"
      type="info"
      loading-text="加载中..."
      >按钮</van-button
    >
  </div>
</template>

<script>
export default {
  data () {
    return {
      isLoading: false
    }
  }
}
</script>

<style></style>
